package com.anycc.cloud.common.dto.json;

/**
 * fail response
 */
public class FailedResponse implements Response {
    public static final String CODE_FAILED = "0";
    public static final String MSG_FAILED = "failed";

    private String code;
    private String msg;

    public FailedResponse() {
        this.code = CODE_FAILED;
        this.msg = MSG_FAILED;
    }

    public FailedResponse(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public FailedResponse(String msg) {
        this.code = "0";
        this.msg = msg;
    }

    @Override
    public String getCode() {
        return null;
    }

    @Override
    public String getMsg() {
        return null;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
